package com.example.blog.config;

import com.example.blog.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ResponseBody;
@Slf4j
@ResponseBody
@ControllerAdvice
public class ExceptionHandle {
    public Result handle(Exception e){
        log.error("发生生错误e :",e);
        return Result.fail("内部错误请来呢");


    }
}
